package com.chenlong.pc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class PersonController {
	
	@RequestMapping("/register")
	public ModelAndView login(String name) { 
		ModelAndView mv = new ModelAndView();
		mv.addObject("name", name);
		mv.setViewName("index");
		return mv;
	}
}
